package com.chance.cc.crawler.prod.command.script.news.jiemian;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.script.ScriptCommand;
import com.chance.cc.crawler.prod.command.job.domain.news.jiemian.car.JieMianCarArticleRealtimeCrawlerScheduleJob;

public class JieMianCarArticleCrawlerScript {
    private static ScriptCommand scriptCommand = new ScriptCommand("192.168.1.217",9599);//mysql服务器地址

    public static void main(String[] args) {

        publishJieMianCarArticleCrawlerNodeScript();
    }

    private static void publishJieMianCarArticleCrawlerNodeScript() {
        HttpPage httpPage = scriptCommand.publishCrawlerScript2Consul(JieMianCarArticleRealtimeCrawlerScheduleJob.domain);
        System.out.println("发布采集脚本：" + httpPage.getRawText());
    }
}
